<template>
  <div  id="building">
    <div style="margin-left: 25%;margin-top: 100px;opacity: 0.6" >
      <el-descriptions title="商家信息"  @click="getSeller(1)" style="width: 60%;font-size: 20px">
        <el-descriptions-item label="店铺名" >{{seller.sname}}</el-descriptions-item>
        <el-descriptions-item label="店铺地址">{{seller.saddr}}</el-descriptions-item>
        <el-descriptions-item label="联系方式" style="padding-left: 20px">{{seller.sphone}}</el-descriptions-item>
        <el-descriptions-item label="工作时间">{{seller.sworkTime}}</el-descriptions-item>
      </el-descriptions>
    </div>
  </div>
</template>

<script>
export default {
  name: "Seller",
  data() {
    return {
      seller: {
        id: '',
        sname: '',
        saddr: '',
        sphone: '',
        sworkTime: ''
      }
    }
  },
  created() {
    this.getSeller(1)
  },
  methods: {
    getSeller(id){
      this.$axios({
        method: 'get',
        url: '/seller/findSeller',
        params: {
          id
        }
      }).then(res => {
        this.seller=res.data.data.data
      })
    }
  }
}
</script>

<style scoped>
#building{
  background:url("https://ghxt-atlbb.oss-cn-zhangjiakou.aliyuncs.com/image/banner1653651316000.jpg") no-repeat;
  width:100%;
  height:100%;
  position:fixed;
  background-size:100% 100%;
}
</style>
